From: Timothy Bess Date: Thu, 1 Mar 2018 22:14:57 +0000 (-0500) Subject: Issue #5087 X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~67^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=691f95de5c589fa41338f00c83d1a242a9144e3f;p=cargo.git Issue #5087 * change match to if --- diff --git a/src/cargo/ops/cargo_compile.rs b/src/cargo/ops/cargo_compile.rs index dcb3acfbc..34cc9d63e 100644 --- a/src/cargo/ops/cargo_compile.rs +++ b/src/cargo/ops/cargo_compile.rs @@ -156,11 +156,11 @@ impl<'a> Packages<'a> { } }; if specs.is_empty() { - match ws.is_virtual() { - true => bail!("manifest path `{}` contains no package: The manifest is virtual, \ - and the workspace has no members.", ws.root().display()), - false => bail!("no packages to compile"), + if ws.is_virtual() { + bail!("manifest path `{}` contains no package: The manifest is virtual, \ + and the workspace has no members.", ws.root().display()) } + bail!("no packages to compile") } Ok(specs) }